//
//  MyCollectViewController.m
//  diaoyuren
//
//  Created by 钓鱼人 on 16/3/23.
//  Copyright © 2016年 game. All rights reserved.
//

#import "MyCollectViewController.h"
#import "PersonNavView.h"
#import "SlideView.h"
#import "CollectAticleTableview.h"
#import "CollectSelectTableview.h"

@interface MyCollectViewController ()
{

    CollectSelectTableview *_selectTab;
    CollectAticleTableview *_aticletab;
}
@end

@implementation MyCollectViewController

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = YES;
    self.app.myTabBar.tabBar.hidden = YES;
    StatusBlack;
}
- (IBAction)popBack:(id)sender {
    
    _selectTab.fatherView = nil;
    _aticletab.fatherView = nil;
    [self.navigationController popViewControllerAnimated:YES];
    

}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.frame = [UIScreen mainScreen].bounds;
    SlideView *slide = [[NSBundle mainBundle]loadNibNamed:@"SlideView" owner:nil options:nil].lastObject;
    slide.frame =CGRectMake(0, 64, SCREEN_WIDTH, SCREEN_HEIGHT-64);
    
    [self.view addSubview:slide];
    slide.titleAry = @[@"帖子",@"学堂"];
    
    //帖子收藏的 tableview
    _selectTab = [[CollectSelectTableview alloc]initWithFrame:CGRectMake(0,0 , SCREEN_WIDTH, SCREEN_HEIGHT-64-40) style:UITableViewStylePlain];
    _selectTab.fatherView = self;
    [slide.scrollview addSubview:_selectTab];
    
    //学堂收藏 tableview
    _aticletab = [[CollectAticleTableview alloc]initWithFrame:CGRectMake(SCREEN_WIDTH,0 , SCREEN_WIDTH, SCREEN_HEIGHT-64-40) style:UITableViewStylePlain];
    _aticletab.fatherView = self;
    [slide.scrollview addSubview:_aticletab];
}


-(void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    
}

@end
